]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Minor coding style fix
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 3 Jul 2013 15:26:01 +0000 (17:26 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 9 Jul 2013 20:06:13 +0000 (22:06 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=703807

js/ui/modalDialog.js

index 8af40131c0f663497ae41511eacdb5ed994fe034..d400b5ad7e94ec34c2eed1df75619d1f471955fb 100644 (file)
@@ -79,9 +79,8 @@ const ModalDialog = new Lang.Class({
 
         this.dialogLayout = new St.BoxLayout({ style_class: 'modal-dialog',
                                                vertical:    true });
-        if (params.styleClass != null) {
+        if (params.styleClass != null)
             this.dialogLayout.add_style_class_name(params.styleClass);
-        }
 
         if (!this._shellReactive) {
             this._lightbox = new Lightbox.Lightbox(this._group,
@@ -357,8 +356,9 @@ const ModalDialog = new Lang.Class({
         if (this._savedKeyFocus) {
             this._savedKeyFocus.grab_key_focus();
             this._savedKeyFocus = null;
-        } else
+        } else {
             this._initialKeyFocus.grab_key_focus();
+        }
 
         if (!this._shellReactive)
             this._eventBlocker.lower_bottom();